#include <iostream>

int main(){
    using namespace std;
    const int ArSize = 20;
    char name[ArSize];
    char dessert[ArSize];

    cout << "Enter your name:" << endl;
    cin.get(name,ArSize);
    cin.get(); // 可以不带参数,处理换行符
    cout << "Enter your favorite dessert:" << endl;
    cin.getline(dessert,ArSize);
    cout << "I have some delicious " << dessert;
    cout << " for you, " << name << ".\n";
    return 0;
}